<?php

namespace app\models\activity;

use Yii;

/**
 * This is the model class for table "activity_prize".
 *
 * @property integer $id
 * @property string $prize_name
 * @property integer $prize_num
 * @property string $prize_money
 * @property string $weight
 * @property string $type
 * @property integer $ks_time
 * @property integer $js_time
 * @property integer $update_time
 * @property integer $create_time
 */
class ActivityPrize extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'activity_prize';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['prize_num', 'ks_time', 'js_time', 'update_time', 'create_time'], 'integer'],
            [['prize_money', 'weight'], 'number'],
            [['prize_name'], 'string', 'max' => 30],
            [['type'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'prize_name' => 'Prize Name',
            'prize_num' => 'Prize Num',
            'prize_money' => 'Prize Money',
            'weight' => 'Weight',
            'type' => 'Type',
            'ks_time' => 'Ks Time',
            'js_time' => 'Js Time',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
        ];
    }
}
